<form method="post" id="search" enctype="multipart/form-data" action="search.php">
<input type="file" name="file" id="file" />
<input type="text" name="i" id="i" value="NULL" style="border: 1px solid #ccc;" />
<input type="submit" name="submit" value="Submit" />
</form>

<br>
<form method="post" id="search" enctype="multipart/form-data" action="monitor.php">
<input type="file" name="file" id="file" />
<input type="hidden" name="token" value="jasnfjs" />
<input type="submit" name="submit" value="Submit" />
</form>
<div style="background: #ccc ;height: 2px;"></div>
<pre>

<?php
include_once "file.php";
include_once "features.php";
include_once "sql.php";
include_once "to_index.php";

sqlInit();

if($_REQUEST["i"] != "NULL" )
 to_index( get_img_file(), $_REQUEST["i"] , 0);
else print_r( search( get_file(), 0) );

sqlClose();



?>
</pre>
<div style="background: #ccc ;height: 2px;"></div>
<pre>
<?
 print_r(get_features(get_img_file()));
?>
